﻿package mortal.game.view.closedBetaGiftBag.renderer
{
    import Message.Public.*;
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class ClosedBetaPlayerRenderer extends GCellRenderer
    {
        private var _rank:GTextFiled;
        private var _name:GTextFiled;
        private var _career:GTextFiled;
        private var _lv:GTextFiled;

        public function ClosedBetaPlayerRenderer()
        {
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            super.data = param1;
            var _loc_2:* = data as SToplist;
            var _loc_3:* = _loc_2.rank;
            this._rank.text = _loc_3.toString();
            var _loc_4:int = 0;
            while (_loc_4 < 3)
            {
                
                if (_loc_4 == (_loc_3 - 1))
                {
                    this._rank.text = "";
                }
                _loc_4++;
            }
            this._name.text = _loc_2.entityName;
            this._career.text = GameDefConfig.instance.getCarrer(_loc_2.propertyThree as int);
            this._lv.text = _loc_2.valueOne.toString();
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            var _loc_1:GBitmap = null;
            var _loc_2:GBitmap = null;
            super.createDisposedChildrenImpl();
            pushUIToDisposeVec(UIFactory.bg(0, 25, 230, 1, this, ImagesConst.SplitLine6));
            this._rank = UIFactory.gTextField("", 15, 5, 30, 20, this);
            this._name = UIFactory.gTextField("", 30, 5, 100, 20, this, GlobalStyle.textFormatBai.center());
            this._career = UIFactory.gTextField("", 130, 5, 50, 20, this, GlobalStyle.textFormatBai.center());
            this._lv = UIFactory.gTextField("", 180, 5, 50, 20, this, GlobalStyle.textFormatBai.center());
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._rank.dispose(param1);
            this._rank = null;
            this._name.dispose(param1);
            this._name = null;
            this._career.dispose(param1);
            this._career = null;
            this._lv.dispose(param1);
            this._lv = null;
            return;
        }// end function

    }
}
